<template>
  <div class="app-container home">
    <!-- 轮播图 -->
    <el-carousel height="455px">
      <el-carousel-item v-for="(item,index) in bannerList" :key="index">
        <img :src="item.url" alt="" @click="handleToLink(item.link)" />
      </el-carousel-item>
    </el-carousel>
    <!-- 内容制作区 -->
    <div class="content-bg">
      <div class="w-1440">
        <div class="content-title">
          内容 <span>制作区</span>
        </div>
        <div class="content-item">
          <div class="content-cell">
            <img class="left-icon" src="@/assets/icons/icon1.png" alt="">
            <div class="right-con">
              <div class="top-title">立场情绪可控文本生成</div>
              <div class="sub-title" @click="handleToLink('/content/textMake')">点击使用 <span class="arrow"></span></div>
            </div>
          </div>
          <div class="content-cell cell-tow">
            <img class="left-icon" src="@/assets/icons/icon2.png" alt="">
            <div class="right-con">
              <div class="top-title">细粒度引导性短视频生成</div>
              <div class="sub-title" @click="handleToLink('/content/videoMake')">点击使用 <span class="arrow"></span></div>
            </div>
          </div>
        </div>
        <div class="content-item cell-three">
          <div class="content-cell">
            <img class="left-icon" src="@/assets/icons/icon3.png" alt="">
            <div class="right-con">
              <div class="top-title">基于情感计算的图像编辑生成</div>
              <div class="sub-title" @click="handleToLink('/content/imgMake')">点击使用 <span class="arrow"></span></div>
            </div>
          </div>
          <div class="content-cell cell-four">
            <img class="left-icon" src="@/assets/icons/icon4.png" alt="">
            <div class="right-con">
              <div class="top-title">高逼真数字人生成</div>
              <div class="sub-title" @click="handleToLink('/content/digitalHumanMake')">点击使用 <span class="arrow"></span></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 效率 -->
    <div style="box-sizing: border-box;height: 238px;">
      <img style="object-fit: cover;" src="@/assets/images/home/bg2.png" alt="">
    </div>
    <!-- 研制单位 -->
    <div class="dev-org">
        <div class="w-1440 footer-org">
          <div class="title">研制单位</div>
          <img class="footer-logo" src="@/assets/images/home/footer_logo.png" alt="">
        </div>
    </div>
    <!-- 底部 -->
    <div class="footer">
      版权所有 © 中国科学院信息工程研究所 备案序号：京ICP备11011297号-1
    </div>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      bannerList:[
        {
          url:require('../assets/images/banner1.png'),
          link:'/content/textMake'
        },
        {
          url:require('../assets/images/banner2.png'),
          link:'/content/videoMake'
        },
        {
          url:require('../assets/images/banner3.png'),
          link:'/content/digitalHumanMake'
        },
        {
          url:require('../assets/images/banner4.png'),
          link:'/content/imgMake'
        }
      ]
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
    handleToLink(link){
      this.$router.push(link)
    }
  },
};
</script>

<style scoped lang="scss">
.app-container{
  padding: 0;
}
.home{
  img{
    width: 100%;
  }
}
.content-bg{
  height: 548px;
  background-image: url("../assets/images/home/bg1.png");
  background-size: cover;
}
.content-title{
	font-size: 40px;
	color: #fff;
  text-align: center;
  padding: 60px 0 10px;
	span{
		color: #69697A;
	}
}
.content-item{
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  .content-cell{
    width: 702px;
    height: 132px;
    display: flex;
    align-items: center;
    background-image: url("../assets/images/home/icon_bg1.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 30px;
    .left-icon{
      width: 72px;
      height: 67px;
      margin-right: 22px;
    }
    .right-con{
      color: #fff;
      .top-title{
        font-size: 24px;
        margin-bottom: 15px;
      }
      .sub-title{
        font-size: 16px;
        color: #9899A5;
        display: flex;
        align-items: center;
        cursor: pointer;
        .arrow{
          display:inline-block;
          background-image: url("../assets/images/home/arrow.png");
          width: 12.5px;
          height: 8px;
          background-position: center;
          background-size: 100%;
          background-repeat: no-repeat;
          margin-top: 2px;
          margin-left: 10px;
        }
      }
    }
  }
  .cell-tow{
    background-image: url("../assets/images/home/icon_bg2.png") ;
  }
  .cell-three{
    background-image: url("../assets/images/home/icon_bg3.png") ;
  }
  .cell-four{
    background-image: url("../assets/images/home/icon_bg4.png") ;
  }
}
.dev-org{
  background-image: url("../assets/images/home/bg1.png");
  background-size: 100%;
  background-position: center;
  height: 263px;
}
.footer-org{
  padding-top: 54px;
  text-align: center;
  .title{
    font-size: 32px;
    color: #fff;
  }
  .footer-logo{
    width: 340px;
    height: 78px;
  }
}
.footer{
  font-size: 12px;
  color: #fff;
  background-color: #051635;
  text-align: center;
  padding: 30px;
}
</style>

